package com.mutouren.common.orm.spring;

public class DataSourceSynchronizationManager {
	
	private static final ThreadLocal<DataSource> holder = new ThreadLocal<DataSource>();
	
	public static DataSource getDataSource() {
		return holder.get();
	}
	
	public static void setDataSource(DataSource source) {
		holder.set(source);
	}	
	
	public static void clear() {
		holder.remove();
	}
	
}
